﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DomainModel
{
    [DataContract]
    public class User
    {
        public User()
        {
            
        }

        public User(int id, string name, string password)
        {
            Id = id;
            Name = name;
            Password = password;
        }

        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public string Password { get; set; }
    }

    [DataContract]
    public class Music
    {
        public Music()
        {
            
        }

        public Music(int id, int userId, string name, byte[] song)
        {
            Id = id;
            UserId = userId;
            Name = name;
            Song = song;
        }

        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public int UserId { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public byte[] Song { get; set; }

    }
}
